﻿<%@ Page Title="" Language="C#" MasterPageFile="../AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="AddEdit.aspx.cs" Inherits="Admin_User_AddEdit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="pnlMain" runat="Server">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>
                Username
            </td>
            <td>
                <asp:TextBox ID="txtUsername" MaxLength="50" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvUsername" Display="Dynamic" runat="server" ControlToValidate="txtUsername"
                    ErrorMessage="Username is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr id="trPassword" runat="server">
            <td>
                Password
            </td>
            <td>
                <asp:TextBox ID="txtPassword" MaxLength="50" Width="200" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPassword" Display="Dynamic" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="Password is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr id="trConfirmPassword" runat="server">
            <td>
                Confirm Password
            </td>
            <td>
                <asp:TextBox ID="txtConfirmPassword" MaxLength="50" Width="200" runat="server" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator2" Display="Dynamic" runat="server" ControlToValidate="txtConfirmPassword"
                    ErrorMessage="Confirm Password is required"></asp:RequiredFieldValidator><asp:CompareValidator
                        ID="CompareValidator1" runat="server" ErrorMessage="Confirm Password does not match with passsword"
                        ControlToCompare="txtPassword" ControlToValidate="txtConfirmPassword"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                Email Address
            </td>
            <td>
                <asp:TextBox ID="txtEmailAddress" MaxLength="200" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmailAddress" Display="Dynamic" runat="server"
                    ControlToValidate="txtEmailAddress" ErrorMessage="Email Address is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revEmailAddress" runat="server" Display="Dynamic"
                    ControlToValidate="txtEmailAddress" ErrorMessage="Invalid Email Address " ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                User Type
            </td>
            <td>
                <asp:DropDownList ID="ddlUserType" runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvUserType" Display="Dynamic" runat="server" ControlToValidate="ddlUserType"
                    InitialValue="0" ErrorMessage="User Type is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Active
            </td>
            <td>
                <asp:CheckBox ID="chkActive" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />&nbsp;&nbsp;<asp:Button
                    ID="btnCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
